package com.sail.redis.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@ConfigurationProperties(prefix = "spring.data.redis")
@Data
public class RedissonProperties {

    private String timeout;
    private int database;
    private String password;
    private Cluster cluster;
    private String port;
    private String host;

    @Data
    public static class Cluster {
        private List<String> nodes;
    }
}
